<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String title = "趣图-鸟趣";
    request.setAttribute("title", title);
    String ctx = request.getContextPath();
    request.setAttribute("ctx", ctx);
%>
<jsp:include page="/common/fronttop.jsp"/>
<div class="container">
<c:forEach var="model" items="${list}" varStatus="status">
    <c:if test="${status.index%3==0}">
        <div class="row-fluid">
    </c:if>
    <div class="span4">
        <div class="service clearfix">
            <div class="desc">
                <h4>
                    <a href="${ctx}/front/qutu/pagegif/${model.id}">
                        <div><img src="${model.img}" width="300"/></div>
                        ${model.name}
                    </a>
                </h4>
            </div>
        </div>
    </div>
    <c:if test="${status.index%3==2}">
        </div>
    </c:if>
</c:forEach>
<c:if test="${list.size()%3!=0}">
    </div>
</c:if>

<div class="row-fluid" style="text-align: center">
    <c:if test="${start!=1}">
        <a style="cursor: pointer" href="${ctx}/front/qutu/page/${pageid}/1">
                首页
        </a>
    </c:if>
    <c:forEach begin="${start}" end="${end}" var="i">
        <a style="cursor: pointer" href="${ctx}/front/qutu/page/${pageid}/${i}">
                ${i}
        </a>
    </c:forEach>
    <c:if test="${end!=total}">
        <a style="cursor: pointer" href="${ctx}/front/qutu/page/${pageid}/${total}">
            尾页
        </a>
    </c:if>
</div>

</div>
<jsp:include page="/common/frontbottom.jsp"/>



